# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-fresh-i18n

pkgver=7.5.3
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="https://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

# https://wiki.documentfoundation.org/Language_Teams
# https://wiki.documentfoundation.org/Language/Support

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn-IN         "Bengali (India)"         1'
  'bn            "Bengali"                 1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'ca            "Catalan"                 1'
  'ckb           "Central Kurdish / Soranî‎ / سۆرانی " 0'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dsb           "Sorbian: Lower Sorbian / Dolnoserbski" 0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'fur           "Friulian / Friulan"      0'
  'fy            "Frisian / West Frisian / Frysk / Fries" 0'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'gug           "Guarani"                 0'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hsb           "Sorbian: Upper Sorbian / Hornjoserbšćina" 0'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kab           "Kabyle / Kabylian / Taqbaylit / Taqbaylit / Tazwawt" 0'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'pt            "Portuguese"              1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr-Latn       "Serbian (Latin)"         0'
  'sr            "Serbian"                 0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'szl           "Silesian"                0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vec           "Venetian"                0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('e6d0b5bb68173a4d23cd792066af800a6bbd4340a56986140e7a0d3441bbc33f'
            'SKIP'
            'f4b9e976dd475263cc543ed05ee326ccff098cc2dd0475aa0864d3baa30cd3da'
            'SKIP'
            '4fc57bbcd26809c0c267cfb80674bc7a01a9178ff42290d218e4d74fd41c157d'
            'SKIP'
            '4bd4fbd3ab16aa1dc32a587953b1ad21f18f1bd3f246b228d27966971378b72d'
            'SKIP'
            'fa019799ebe395c3ff3c82d8dfb5350889b530439fdd43e4733b0bd53c8dd8bc'
            'SKIP'
            'af001d26731fed117f8f23a54ec03768ca0906b22b7732a41a49792b3394a1a7'
            'SKIP'
            '9704bb185ea2a8d595c4af50fd056faaf5c4f8d04997b06a0142948b344fed9e'
            'SKIP'
            'de44be0f58b4ab8d887d2d2716207c4fc59252f103c00af422d735b170ac1a40'
            'SKIP'
            'a3c442e1586db73003b49592f481fa2604fba61f94e50888aca24bec54f0e0c5'
            'SKIP'
            '58018097c889445a2f9dd74607ab4a2ec4000013d165d2bf55f95c4709932b13'
            'SKIP'
            '95a8f63c639cee987b8e7ba69783c35a2755cc6b9b3b893151af300b11627d99'
            'SKIP'
            '4429ec05eb6988a21ae1d941a7235a04ba0cc749682a6bac301b29159b35e2b5'
            'SKIP'
            '41842e0f697cbf4c7b0b66ba2e887fd52c4e9628b96ab7aea853991752f757ef'
            'SKIP'
            '3013cc0c32fe8aeeceda5f114cf17ef9ed193d95e54a248fd314db2f5daf483f'
            'SKIP'
            'f01343996f0c3003812c60f48fcad623628e133b3c1c3bfc55af17203bc8764e'
            'SKIP'
            '1d8d018d3ca8ce7a8eac69bab37c09439ce9383c9cd63f660ec20dbcaadddbbe'
            'SKIP'
            '6f19f5cec25d4820e3d7e6c947d53859196efcff0caeed49969e412511bd795f'
            'SKIP'
            '8762a26004ebff4cffb25f9c77b7f1a5919f0fa19924a74e1f4b95d32a6211f4'
            'SKIP'
            'bdbc39fa777c76b63789889258bcace976b72ac294eea389248ef782eb2466fc'
            'SKIP'
            'd121980afbc70f4a0823e69a8ad168bd672f0bebecb0d72dbcfaabcb5069ad64'
            'SKIP'
            'd19044db31356b47c91d8c091dbb628d6b24bd18b443602411d0b71e14637fa2'
            'SKIP'
            '441db1ab83e43dbacb5c9493783a950b720f93153e531d39c812542e365d9c7e'
            'SKIP'
            'ae4f788b88bc8efc442388fbbbe80cbe2450a88c41be3c6eda9c076f19e97be2'
            'SKIP'
            '1ee04d745536b95693dbbd06bf95e9e1a243abc1166ec882cf7409b069bd1b74'
            'SKIP'
            '3defedc6d6cb225baf1438140f05ac2e9174540f5fa9f85e347c4b28ecbb52c6'
            'SKIP'
            'c3a60b8112b448d4a35c096aacbfd647f294fb44a885753aad427f5e83a55265'
            'SKIP'
            'bd04a7fa815629a543e3b519ff26de8df52751adfd3c465d0ebd423ca9f12004'
            'SKIP'
            '8e39c979b870b036a048804b0861bf3c80e2264d151b32c54037d7a28a9f2f65'
            'SKIP'
            'a7a119fb662cfd705db68229a2a776f75f47f986da0181fb6ab5f0e4e311aad2'
            'SKIP'
            '2c0bb47d265cfa7c426bd52e63d54a1e3f43ba45db380bc131c413a6428ee057'
            'SKIP'
            'ca78ddc16cebcb7d9803b1e0f38e6dfedc450de603ad1941680b910bc260820d'
            'SKIP'
            '25498b135bf3746d42b0ad3adc6a9f33f3c6a2eaa359008a53786bc318b63e45'
            'SKIP'
            '0eadab335cc5dec50872f6d56727996fd755f3e8a340c8439bfb82074427cb0d'
            'SKIP'
            'da727731b2b40d670cebaf4bb811d480240d1351e8613ce8aee2640815f97924'
            'SKIP'
            'c560441c4784a7cade587bd6fb4e7b50c934f30500c546dadf562a7d4aa6ab0a'
            'SKIP'
            'd783c7201658ebeed35c28a5fde25c9e9c27be446fc32b3b2fc4d2d5e5c12bc4'
            'SKIP'
            '62c8f2587e03c193dac970e6dc5a3977ea705e65c41a4f9d1589b5598e348dec'
            'SKIP'
            'c5b4adfea6d68161e09abeec6e87efd276e2fe7c7f12be08035b25820f14a833'
            'SKIP'
            'a22ca3675265f33bfa737517d7b2b07cdd47a317870047b46933539c27fb2be2'
            'SKIP'
            '6e9e518ede4c0268e9f8e66a59b38fb8c5d521d4b0321c9acda5c053f954a81a'
            'SKIP'
            '7dc141c5147dd375b896ff7e76ac0c17bfd232280109123494ffca795b68b8ff'
            'SKIP'
            '2d4a40df10b296b8f3a90439a04dd7b5eff4ec85bd2d0aa8c22cb01b332aa34b'
            'SKIP'
            'eb89431a858a53690e0718c1cc63c63e4eef544807b7fb05fe0f507a48d264e1'
            'SKIP'
            'e7e7e62af4bfdd04550b4714221fb91924b9f644cca0a0cc6d27f2f95cc101be'
            'SKIP'
            'b2bbb827c6feb0f3ec7dd51e851ff6d2c87391fb44f27098143a09f8f33dd2ba'
            'SKIP'
            '6f0b74fef4fc361a94d3a206f97acaa1bdcf2fc936e7e6b9b04822b4e58ae756'
            'SKIP'
            '1a9f45f28d0a899d15e814b5bd942bf62bf29034dbfe42380e8a50e6c40905b5'
            'SKIP'
            'cd37f47a2eeb45d8e7a93361f34803ba26bc793d7e962aa55fbeaa232ec46350'
            'SKIP'
            'f99ed8c84872bf258e6b82ea27b01109453f63d54e6bd44404292f9691871849'
            'SKIP'
            '26695fdd10f15106d4f6dc26564c95cd78e4c714124e2bc6e95f25c6edf664dc'
            'SKIP'
            'ce24a0e7474f043a520d9180bd42a2424d5ec5f6dc639435405e8d562c88724d'
            'SKIP'
            'd137b81850c4a31fdb0eaa811639254cf238f4c45ba7f66423e8b952e9688dac'
            'SKIP'
            '1089cc7932d8865d11c62c77659d830a59e85fd9aa861fee1a11922fbfcb4531'
            'SKIP'
            'de04ece9340921508f84914d0e31b990a1ca7e380e57f451167867b5027109b5'
            'SKIP'
            'b548ae1bed2d15597836d5575c22aacd5a1b1cc01baf46e7cb19f7af58225bbb'
            'SKIP'
            '5ac1c145383b30fccccfb22a0f49af2c6902d2c13f465ceef5ef83d125cd1c3a'
            'SKIP'
            '36f3b30e13ebb957bf3c9d6a7db03d4fddeac682c086cc9e9b1ef01d4bb6b0c5'
            'SKIP'
            '3b3520ca0302ed92bc0106e595d605c62e070e80b78a4eb8e67c63906b491ad2'
            'SKIP'
            'dbe1977b11efe3b8997dc8a639ab046c14dcd06249e39d612697f0da45a40d68'
            'SKIP'
            '52346b79984fb4337777a7de371a726d6e62f3d7c2b0676a9ec2fc690d723c79'
            'SKIP'
            '766dfa457f236749047dd1400e4f233c328bdb4488f014ce58a1093728c8f3fe'
            'SKIP'
            '50ab0913947b18530455dcf159a3a3421f470c0839582288c62b33067d900f2e'
            'SKIP'
            '56469a9dfaed1df3c4b5f961198b72a65f28280f35aee101d9c3732ecc99a4d1'
            'SKIP'
            'aac1d5b2e2b85bd21200b49d97de42b95e49cf9cb747ff1521e94aac29038655'
            'SKIP'
            'e79c1607bb477b2b26ff1169144eeed838794723d0faa5fbbd58ce3938b7ae69'
            'SKIP'
            'b44d98f480e8343b7c5ff83d7bc876d776d190273da87abe316b62170021eafb'
            'SKIP'
            'eeeb798ace6dc3bb7bc7737f6f8032b69bfef594ea86736af60f8bf460764b51'
            'SKIP'
            '27c3f1513cda6dcdc59d4beb34343e2c5949c5f4bc98d5d14ee1fe9a7fb82bf8'
            'SKIP'
            '6598cb0e43c10cdb62a9401982a32671baa4c044b78171007455c1507f029536'
            'SKIP'
            'a5a29c2d891d5fb109f1915589aee135b1aea79cfa620f3e6c89f3f5dcea1fac'
            'SKIP'
            '9cdaecf3ce5bd61ac713cda54ff32533351bd367e4c8cb09d61d49b5d6098af0'
            'SKIP'
            'ef97de1d19970d2de48a56b78ebbe200b32a5903eb60340b451ee924b0783d62'
            'SKIP'
            'c4eacab32991230556e8b207b7d872d6758a173f2a5f10e00360db9679fee31d'
            'SKIP'
            'a1226cfdf8036d1306faa2d88404ce7ccdd0cdca0c6b60aa00e8e2387f2437cc'
            'SKIP'
            '412557671675601b9cd665814791ae1148cbdceb76cd1d15161b9d2ebae27bb7'
            'SKIP'
            'cf3b8f2b0937ca7d3f8eae91e5058786cfd711b0bd43a4a7b1d43b464f58b25b'
            'SKIP'
            '5b81da8d24d9267c5f3f2919503ae2195cb2b1748432f921a2fc64d6ba0bdcf0'
            'SKIP'
            '830443613140c409e9b0f5c782f5d6f4673a978cdd7489574b860a8b530c867a'
            'SKIP'
            '6075e06e2c4247d34d8226bfcb4fb8aad9f8c025d44dcd80f661b0275968e194'
            'SKIP'
            'bb4517b82e79f586db26faae1b83b362b499b83c0a0dbff585635f50c106e65d'
            'SKIP'
            '22f49854193f06036ec3cb54ac945d0d3b8321dc85335ca53728444704818c3e'
            'SKIP'
            'a69948839cec67575a3dcacdebf9fe8de900985e685398e3e51147de07267786'
            'SKIP'
            '1d6c013e1f738bb9b3f20b3c234126888ca17ccea0a2f05e3d9c190711d69976'
            'SKIP'
            'da75626f4cfd0c98f4178adaf275a9f78f62ab8a690ae87ff8900b2c2211fc33'
            'SKIP'
            '9a34462386691d2765a0f9417e93433fab1428ab4088d5d9e26aeee2a708e016'
            'SKIP'
            'cde5777c34568a36bacd67b457b335686350641bdb217ffc3c85be972f74d092'
            'SKIP'
            'cee52dba03a61f92e421b7e280b99b9e293f4d537d6398f769fc3420ed5fbf46'
            'SKIP'
            '5195101e014c0f34a11981d7a4dc95b5384d088f6ce86a5620206df844b9c82a'
            'SKIP'
            '7c40493b5418e7e7c24eff66e9964e6d82c1117cd8a9b45d6c9c68e053dff3a9'
            'SKIP'
            '329561f407e78943b612311b0a1835fde0be9084ed39e8ba25b98ba61ea6e294'
            'SKIP'
            '4bc969985c2723bfee538a678b42e445bcec192daaa899ccd7142bf1e3563544'
            'SKIP'
            'a6c158a8ef7750c196181837a48e09e12461a6d43bce49d1c6d6828830c7e080'
            'SKIP'
            '459dab4838b3c56b8ebbc10cec434a6072257d63ab57353ebb2f2143afa4b9e3'
            'SKIP'
            '97711e64d47e8a67922a520d75b8305f8d6eb986c3ed4eb76e818f077ee76f4f'
            'SKIP'
            '631b27479c712a010e7ee92751acd50a02474565ce15f2ca9c9e78e7430b1aaa'
            'SKIP'
            '91f4a951f0b6cdd1a7870774538e6198b6cbe2f0fe00cbcfa1e68d012ba99b84'
            'SKIP'
            '70e299d1197c168fbcf32d769e43533d5524211749bcd7962e8ad6be1e44eb72'
            'SKIP'
            'ad17820fb6c2a137e1f8ab21680fbe496bfd9c6ff50ca971c750234b107607f7'
            'SKIP'
            '457dae3ff1cdf67ea4ad18222f7da86707d3f74e420ff8e8969de9a5c19f2ddb'
            'SKIP'
            'abd3ec70d4b4020717ecdca47193cde3b4fecb69babac41ec723e6f0b0ccaa09'
            'SKIP'
            'c24009bd54a6886a435ef97ecaeefc39f2d6f15c9c155cedfb14b95bd6fed422'
            'SKIP'
            '4e505c0b78d2fa58716aaf3cf92bfacac4607f6585e20f4371ec071ef6959ed3'
            'SKIP'
            'bbaf2223e85039751e7700442d62024356eedd3ff98e176345cf0d9058017796'
            'SKIP'
            'b9e7df572c210837da794d22be99a051db0f8d300916ddf7e527810fd7e8d8c7'
            'SKIP'
            'f0e203eeb82ef63a8d2cab952797c7da117b4eb3bc1e7fe7ec2fe259dd84b13a'
            'SKIP'
            'f663f5b4125863dfd3ad9984b98550c621b3a567fe7521128685becd080f6e27'
            'SKIP'
            '788e79cba0219a4bf2318475cbb025b84c1b1c00098227e720e5ce10f4fe0d04'
            'SKIP'
            '350b4ec9e61e60acb75a2595d7c96a342a431da5c94dc9715478c4947fe898c5'
            'SKIP'
            '92717efd85203c877581db361340b6194b3fee420856d8ad3bb7e5afaa7766f9'
            'SKIP'
            'da49ab3877313ce7816810e6139f38d2a23d821c48bbe8642a0419568b92c3d9'
            'SKIP'
            '8cb61b157506612d1e6e4acee31b3e103f46773651b125975941f2a0605c6b2b'
            'SKIP'
            '00bfff23f17135650f585f37962714c68e1fe677e180673dbc8892cdf5eb8c3c'
            'SKIP'
            '957f13d60cc491e1fc06070596d35e54291e1a0153cb8e8cbe4d341b33288e42'
            'SKIP'
            'c1496661a53e4c04546409b0515eb38edb390eee00f4f6c81ff9e402d92c76e8'
            'SKIP'
            'f9e2f27e33e531c61842171d43ba9620655acd2593cfb524345a00e37a5b8391'
            'SKIP'
            'b5b88555cd1f05e1bd5bad87c80271b5731776acffffe968985ba69e5e0f63e5'
            'SKIP'
            'f3c8690cec554d97dbdcaed12443876afcaa307c51f97709acf77c3b0ec8cd11'
            'SKIP'
            'fd040f7e6bbcae7ee5279287678a3b54ca8deca08cd6e8d396c21bb7877966d8'
            'SKIP'
            '6b6fb5398a77b3bd4fab3134012ed9138df6fa6fe7cdced29a8fd16f0742b24a'
            'SKIP'
            '0af763651c414a39c4b01d0d77e2d3e2b16ee8610bf3343190b247d00f495039'
            'SKIP'
            'edf9adf863e197cf4c5afe767558a976d1c599261553404000d85314b685987d'
            'SKIP'
            '8537153d26107d37124128c2a16fa8e888190709423b201dc4195c8239a87f96'
            'SKIP'
            'e2df7f4b8fdff32321846c5e9a6c615667cd9e40795a2a7744665ff8f4856937'
            'SKIP'
            '42d88a312309c5c7b5b1ba99faa24208dbc354221a6055db60b4d14f6e515bdc'
            'SKIP'
            'ed9f834c28e05a38e8f32401f4074c20ff818762da1c90874e1fa8e7e48ade33'
            'SKIP'
            '740920fb86751c52f22e95a3a023526692eb5506b4463a0c129a1321058fec23'
            'SKIP'
            'e3203e51ba074e7072cbfb66735c3554272add97e99e8d33d9a93606d7551344'
            'SKIP'
            '7ecda56acab546a5a7844ab2b579c928b7f31760d008c4b8223223fdad20fdab'
            'SKIP'
            '32f817fac35c682033134065ef63b0581fab8f6996a9eef2fc08f91965e76452'
            'SKIP'
            'ad36b2e20b79f9ba9a90df239196e027820c321fc383119f893c7379aa654cba'
            'SKIP'
            'bf58c828892a346bd3264ec4a04d8d39bd47014eb507c5168cbf5768ce0ad501'
            'SKIP'
            '75d7d7e966339186bd7dd36a7f87b20282dcb03c1c19545fd5f0299df9c0b4e9'
            'SKIP'
            '81b49fceab78d4944d90847bd4716303f1c9f3b18ec44ba892a3b07bd0cc82ac'
            'SKIP'
            '8d1352ccf2ab20523ca9e2688b5caecc26cfc112b246ff3a6ee99b8b48ce06ab'
            'SKIP'
            '7168823d5fb35cf2ccf35f403c9078c0b31f88d26f4b6b755fbaf7ac2318f890'
            'SKIP'
            '69685f54ee8bea4649a3e9cc063bdaf7842124c9103a8c3cfb6c68ab03c1eaa6'
            'SKIP'
            '1edb79fd15d3ade3d61239ef35c1019c99dae589826b9e50e946801a3a49b61f'
            'SKIP'
            'ef2cbe520f1701d40ffd5bb72872e2bca797e6a392c7036a69507ed05826dff3'
            'SKIP'
            'a0944d8e7a2e5f60d95840a89b957356577964004ae7f3a751b5773a2633bdea'
            'SKIP'
            '482c805278e0a6192e63237d1535dd0778dabb0a10da6dfa4943c006e6a939c9'
            'SKIP'
            'c3b84aa7661165104a533dc94a828c67e02459d6d14cd603f1894a852c8acb37'
            'SKIP'
            '9042733f2ab3e19a3b1d1e47db92b75090a2979369a3607f2acfbb63a19182af'
            'SKIP'
            'e28e40a0d6c372a13ff7c6efe4a354bffce9faf22dfe3a42e1a619f5aa42a88c'
            'SKIP'
            'ce3a6ffe98673626a857c396b3771f5dac95330f0504ba0210de58d4eaff4553'
            'SKIP'
            'bd4afa42a9b083012f09218d726b40e3130514665d9bfe6bef98a6155b4f5cee'
            'SKIP'
            '45a403f820c2b635a14d25e416dfdbda8549202b8d6fd9c20cf7a8521f8c32b2'
            'SKIP'
            '7f914d442c72b01b81cef82a221e4d1438c54d0540d5115499ff1ee9da705f0a'
            'SKIP'
            '965224b23d3954bdebc0e723ecc23e3a283c16f725f9678cfbb8a93fcf79562d'
            'SKIP'
            '68b31917dd7ae5e5f7af3774a5cf07b312dfd63f74d3dd09264e6057629a1d0f'
            'SKIP'
            'f863764163c33b779d4d3ae5644189ef4d0f3dd7ec60c1cd32b4b31d56863168'
            'SKIP'
            '52641f9b5d035fa1862bbc9935c530ac6c7a9e2981fae6d881fc7e1e96a1932e'
            'SKIP'
            '2263a516ff9ff75a9869c81a026ba7621f4fb8c0b8d6ed9fb2d830ba61f563b7'
            'SKIP'
            '840ba44ee58d10924fbe73e42ec7bec8c3974cfcad8a4c5426a75a6d00649196'
            'SKIP'
            '6fbab2c325f2a6bfea294a4861ed478b7954f09eb366851889edc0f500a30f17'
            'SKIP'
            'e1ece3da3310c4701747dedf928c4cd6d32149ac3a24b653e89c8006274290c9'
            'SKIP'
            'cd945261601c3f335bd3cb3e3473fbb5ea8bfebdb3ef3b338149a0ca1fa03b9d'
            'SKIP'
            '4eeae9f0ab2583325d746c3e9a4b486ba779912d70071ddb101b1645e357c5d2'
            'SKIP'
            '4921e586f1a32c582000deaffcd400ffa6bdfd581bca396ca5a79430b61677ec'
            'SKIP'
            '21649b00fa2ddc29145affecaa234fae4bf84eee44cb8eec45d2ff69d74d5ce2'
            'SKIP'
            'd3fd3651baa0e2d7257c1e8e1ccdd921bf01a594296511aa1c6594b289878545'
            'SKIP'
            '716ff4cce939d3256425d1b144ee9d596559f8942e277f417948e37f50a519e2'
            'SKIP'
            '4304ac00ff99010db76850ab519ce530e0ebf0f30f27fc4744520f1055e13441'
            'SKIP'
            'a3688c0b283e8b7ba90b4cb076e86a95727b8a3561104065b7ef1d92d0b133ff'
            'SKIP'
            'faf8d70d861455684d43ed5defc8d8fdc11a0ba7bd1521845b1b857795bcc1a9'
            'SKIP'
            'e0035784f5892ee3c6359eb6d5ae03a980a91029741497eccc129fae6afe1cf4'
            'SKIP'
            '626bcc9ba7522a29696a3517ab6700493a733a18db27c28c9026ba17778849d7'
            'SKIP'
            '41746604402b9102c0957b9d34976f540b967defaff8377c4a05acc23cf02ced'
            'SKIP'
            'a2ecd30c5d3e7b12509284c237c14accb9b5a539e7b6e97d3f696142b0ccc891'
            'SKIP'
            '32904f03bf41e8855ec12dce88879c7a6c4eb7f6b027776f69b428b061eaa6fb'
            'SKIP'
            '00a19d06947dfd1ea93588a6905f972e6555bc366925914dd3dee76d846d1a67'
            'SKIP'
            '64a79f763022d5818cc2ed62a1de72360cd51c121246c1d530eb22a6153c687d'
            'SKIP'
            'd64a2f40ba728e29589639c7b6dabca6faa745b9ccf9b457db0c989a8d201f99'
            'SKIP'
            '0a31ef39acdc3fa31769bb98eaa6647916e437df397b9d3e6908286f99421845'
            'SKIP'
            '17341f52eecfa0afd18734581d40f9b1e5a73c69864862689b162dea95fceef9'
            'SKIP'
            '39b1c1f6a917641fef52e1875c4addcd16a84e655a4b6b86c9bfbbcce9af3a0e'
            'SKIP'
            '4d2163a6db660f3de4f12a18c0b99f941351c708b0555d41117dde86bdc19e12'
            'SKIP'
            '6baaac9d9517e4facf2fd2b61423026f87bc05f934f5a392f62d016aeea95f3b'
            'SKIP'
            '36a9e35738baadfae5e5ba274c033c74026ba33499692e671b45abb24c44bf05'
            'SKIP'
            '5b2354827788d78c1a1166e67844663b44c330778895a454b0747e2a368021ed'
            'SKIP'
            '13ef838e416002208a1b49887bf025c956c56b0ef69cd424650ad6eeee6eb6dd'
            'SKIP'
            '2402a4cb8b83b74f185d345cc4bf720cae7ab9d8316bfa3bf1e1b8146b93bd45'
            'SKIP'
            '296dac8b7ca6f51b4b1ca032ae86fe3b689cefb240680b68435c61bddc5ca952'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice Fresh"
  depends=('libreoffice-fresh')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-fresh-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-fresh-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
